import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 87111
 * Date: 2025-09-25
 * Time: 18:00
 */
public class Test {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        List<List<Integer>> list1 = new ArrayList<>();
        List<Integer> list2 = new ArrayList<>();
        if (n == 1) {
            System.out.println(1);
            return;
        }
        list2.add(1);
        list1.add(list2);
        for (int i = 1; i < n; i++) {
            List<Integer> list3 = new ArrayList<>();
            //每行第一个元素
            list3.add(1);
            //每行中间元素
            for (int j = 1; j < i; j++) {
                list3.add(list1.get(i-1).get(j-1) + list1.get(i-1).get(j));
            }
            //每行最后一个元素
            list3.add(1);
            list1.add(list3);
        }
    }
}
